package com.hqyj.dao;

import com.hqyj.pojo.AttendanceSheet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.pojo.SalaryScale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rock
 * @since 2021-10-20
 */
@Mapper
public interface AttendanceSheetMapper extends BaseMapper<AttendanceSheet> {

    List<AttendanceSheet> queryAttendancList(@Param("pagefirst") Integer pagefirst, @Param("pageSize") Integer pageSize);
    List<AttendanceSheet> queryAttendancListByAsc(@Param("pagefirst") Integer pagefirst,
                                                   @Param("pageSize") Integer pageSize,
                                                   @Param("rewardPunishmenMoney") String rewardPunishmenMoney);
    List<AttendanceSheet> queryAttendancListByDesc(@Param("pagefirst") Integer pagefirst,
                                                   @Param("pageSize") Integer pageSize,
                                                   @Param("rewardPunishmenMoney") String rewardPunishmenMoney);

    int insertAttendance(AttendanceSheet attendanceSheet);

    int updateAttendance(AttendanceSheet attendanceSheet);

    int delAttendance(AttendanceSheet attendanceSheet);

    int querytotal();

    //查询出请假最多的一个人
    AttendanceSheet queryOne(AttendanceSheet attendanceSheet);


    List<AttendanceSheet> queryByOneId(Integer id);

    int totalmoney(Integer id);

    List<Integer> selectawardMoney(Integer id);


}
